package com.xmcowell.sportpacemaster.utils.retrofit;

import com.xmcowell.sportpacemaster.config.UrlConfig;
import com.xmcowell.sportpacemaster.layout.entity.UserInfo;
import com.xmcowell.sportpacemaster.layout.me.entity.ClientStatDto;
import com.xmcowell.sportpacemaster.layout.me.entity.ListMode;
import com.xmcowell.sportpacemaster.layout.me.entity.TrainDetail;
import com.xmcowell.sportpacemaster.layout.me.entity.TrainHistoryStatDto;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Objects;

import okhttp3.MultipartBody;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

public interface APIService {

    //登录注册
    @FormUrlEncoded
    @POST(UrlConfig.CLIENT)
    Call<HttpResult<UserInfo>> client(@FieldMap HashMap<String, String> param);
    //二维码登录
    @FormUrlEncoded
    @POST(UrlConfig.CLIENT1)
    Call<HttpResult<UserInfo>> qrCodeLogin(@FieldMap HashMap<String,String> param);
    //退出登录
    @FormUrlEncoded
    @POST(UrlConfig.CLIENT1)
    Call<HttpResult<Object>> outLogin(@FieldMap HashMap<String,String> param);
    //数据同步
    @FormUrlEncoded
    @POST(UrlConfig.SPORT1)
    Call<HttpResult<List<String>>> sportUpDate(@FieldMap HashMap<String, String> param);
    //获取个人信息
    @FormUrlEncoded
    @POST(UrlConfig.CLIENT1)
    Call<HttpResult<ArrayList<ClientStatDto>>> otherUserInfo(@FieldMap HashMap<String, String> param);
    //历史记录
    @FormUrlEncoded
    @POST(UrlConfig.SPORT1)
    Call<HttpResult<List<TrainHistoryStatDto>>> sportHistoryData(@FieldMap HashMap<String,String> param);
    //历史记录
    @FormUrlEncoded
    @POST(UrlConfig.SPORT1)
    Call<HttpResult<ListMode<TrainDetail>>> sportHistoryData1(@FieldMap HashMap<String,String> param);


    //群组-->建群
//    @Multipart
//    @POST(UrlConfig.GROUP)
//    Call<HttpResult<Object>> createGroup(@Part List<MultipartBody.Part> partList);
//

}